package com.xuetang9.t9.xinhuaxia.service;

import com.github.pagehelper.PageInfo;
import com.xuetang9.t9.xinhuaxia.beans.SecondCategory;

import java.util.List;

/**
 * @author 李亚奇
 * @version 1.0
 * @desc TODO
 * @date 2020/3/1 13:42
 * @copyright liyq
 * @address 成都西部国际金融中心2栋2201
 **/
public interface ISecondCategoryService {
    boolean insert(SecondCategory secondCategory);

    boolean remove(Long id);

    boolean update(SecondCategory secondCategory);

    SecondCategory queryById(Long id);

    SecondCategory queryByName(SecondCategory secondCategory);

    List<SecondCategory> queryAll();

    PageInfo<SecondCategory> queryByPage(int currentPage, int perPageSize);
}
